Ejemplo n.º 1
0
 private void Start()
 {
     BaddyLaser           = Instantiate(BaddyLaserPrefab, gameObject.transform.position, Quaternion.identity);
     LaserSprite          = BaddyLaser.GetComponentInChildren <SpriteRenderer>();
     collidingPlayers     = BaddyLaser.GetComponent <CollidingPlayers>();
     collidingEnvironment = BaddyLaser.GetComponent <CollidingEnvironment>();
     BaddyLaser.SetActive(false);
     Bmgr = gameObject.GetComponent <BaddyAttackManager>();
 }
Ejemplo n.º 2
0
 void Start()
 {
     movement      = new ScaryCuboidMoveController(gameObject, Speed, timeToNextMove);
     attackManager = GetComponent <BaddyAttackManager>();
 }