void Start() { gOver = Camera.main.GetComponent <GameOverControl>(); rb = GetComponent <Rigidbody2D>(); ARb = Arma.GetComponent <Rigidbody2D>(); ARb.isKinematic = true; ArmaPosInicial = Arma.transform.localPosition; Aura.SetActive(false); }
void Start() { gOver = Camera.main.GetComponent <GameOverControl>(); player = GameObject.FindGameObjectWithTag("Player").transform; timeBtwShots = startTimeBtwShots; finiteStateMachine = new FiniteStateMachine(); lastShoot = -shootCooldown; }
public PipeLine(int width, int height, int delay) { gameBoard = new GameBoard(width, height); gameOverControl = new GameOverControl(gameBoard.TileArea); this.delay = delay; }