1234567891011121314 |
- using UnityEngine;
- using System.Collections;
- /// <summary>
- /// Scenery prop which will be flush on the top edge of the screen on all devices
- /// </summary>
- public class SceneryPropFromTopScreenEdge : SceneryProp
- {
- protected override void OnSpawnMsg()
- {
- base.OnSpawnMsg();
- _transform.localPosition += new Vector3(0, AspectRatioFixer.UIManualHeight/2);
- }
- }
|