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