コード例 #1
0
 protected void Start()
 {
     component = GetComponent <ShipComponent>();
     ship      = component.ParentShip;
     control   = ship.GetComponent <ShipControl>();
     control.AddWeapon(this);
 }
コード例 #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>();
 }
コード例 #3
0
ファイル: ShipLaserWeapon.cs プロジェクト: rabiribi/OrbitII
 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();
 }