예제 #1
0
 protected void Start()
 {
     component = GetComponent <ShipComponent>();
     ship      = component.ParentShip;
     control   = ship.GetComponent <ShipControl>();
     control.AddWeapon(this);
 }
예제 #2
0
 public void Start()
 {
     shipComponent = GetComponent <ShipComponent>();
     ship          = shipComponent.ParentShip;
     control       = ship.GetComponent <ShipControl>();
     control.AddThruster(this);
 }
예제 #3
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>();
 }
예제 #4
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();
 }
예제 #5
0
파일: Ship.cs 프로젝트: GuochuSang/OrbitII
 public void Awake()
 {
     control       = GetComponent <ShipControl>();
     serializeShip = GetComponent <SerializeShip>();
 }