Exemplo n.º 1
0
 protected void Start()
 {
     component = GetComponent <ShipComponent>();
     ship      = component.ParentShip;
     control   = ship.GetComponent <ShipControl>();
     control.AddWeapon(this);
 }
Exemplo n.º 2
0
 protected void Start()
 {
     component = GetComponent <ShipComponent>();
     ship      = component.ParentShip;
     control   = ship.GetComponent <ShipControl>();
     control.AddWeapon(this);
     animator = component.Blocks[new Vector2Int(0, 0)].GetComponent <Animator>();
 }
Exemplo n.º 3
0
 protected override void Start()
 {
     shipComponent                 = GetComponent <ShipComponent>();
     ship                          = shipComponent.ParentShip;
     control                       = ship.GetComponent <ShipControl>();
     laserBase                     = shipComponent.Blocks[new Vector2Int(0, 0)].GetComponent <Animator>();
     head                          = shipComponent.Blocks[new Vector2Int(0, 1)].GetComponent <Animator>();
     laserTriggeerDamage           = LaserGlow.GetComponent <LaserTriggerDamage>();
     laserTriggeerDamage.shipLaser = this;
     control.AddWeapon(this);
     base.Start();
 }