Example #1
0
 void Start()
 {
     gOver           = Camera.main.GetComponent <GameOverControl>();
     rb              = GetComponent <Rigidbody2D>();
     ARb             = Arma.GetComponent <Rigidbody2D>();
     ARb.isKinematic = true;
     ArmaPosInicial  = Arma.transform.localPosition;
     Aura.SetActive(false);
 }
Example #2
0
    void Start()
    {
        gOver = Camera.main.GetComponent <GameOverControl>();

        player = GameObject.FindGameObjectWithTag("Player").transform;

        timeBtwShots = startTimeBtwShots;

        finiteStateMachine = new FiniteStateMachine();

        lastShoot = -shootCooldown;
    }
Example #3
0
 public PipeLine(int width, int height, int delay)
 {
     gameBoard       = new GameBoard(width, height);
     gameOverControl = new GameOverControl(gameBoard.TileArea);
     this.delay      = delay;
 }