SceneryPropFromiPadTop.cs 386 B

123456789101112131415
  1. using UnityEngine;
  2. using System.Collections;
  3. /// <summary>
  4. /// Scenery prop which if on an iPad it would be flush at the top.
  5. /// However on other devices it would be clipped.
  6. /// </summary>
  7. public class SceneryPropFromiPadTop : SceneryProp
  8. {
  9. protected override void OnSpawnMsg()
  10. {
  11. base.OnSpawnMsg();
  12. _transform.localPosition += new Vector3(0, GameConstants.GAME_HEIGHT/2);
  13. }
  14. }