protected void Start() { component = GetComponent <ShipComponent>(); ship = component.ParentShip; control = ship.GetComponent <ShipControl>(); control.AddWeapon(this); }
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>(); }
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(); }