public override void FirstSetUp()
    {
        base.FirstSetUp();

        if (aimingType == EnemyAimingType.AimTowardPlayer)
        {
            targetPlayer = GameManager.gameManager.GetPlayer;
        }

        screenKillTransform  = GameManager.gameManager.GetGameScroller.GetKillTransform;
        screenEnterTransform = GameManager.gameManager.GetGameScroller.GetEnterTransform;

        GameManager.gameManager.AddActionToOnGameOver(StopBehaviour);
    }
 public override void OnEnable()
 {
     base.OnEnable();
     targetPlayerSpaceShip = target as PlayerSpaceShipScript;
 }
예제 #3
0
 public void SetUp(PlayerSpaceShipScript playerShip)
 {
     player = playerShip;
 }