1234567891011121314 |
- using UnityEngine;
- using System.Collections;
- /// <summary>
- /// Scenery prop which will be flush on the bottom edge of the screen on all devices
- /// </summary>
- public class SceneryPropFromBottomScreenEdge : SceneryProp
- {
- protected override void OnSpawnMsg()
- {
- base.OnSpawnMsg();
- _transform.GetComponent<RectTransform>().anchoredPosition = _transform.GetComponent<RectTransform>().anchoredPosition + new Vector2(0f, -(float)(GameConstants.GAME_HEIGHT/2));
- }
- }
|