Esempio n. 1
0
 void Start()
 {
     rb          = GetComponent <Rigidbody>();
     blockHolder = GetComponent <BlockHolder>();
     ship        = GetComponent <ShipOwner>().OwnShip;
     shipManager = GameObject.FindWithTag("ShipManager").GetComponent <ShipManager>();
 }
Esempio n. 2
0
 void Start()
 {
     audioManager         = GameObject.FindWithTag("AudioManager").GetComponent <AudioManager>();
     blockHolder          = GetComponent <BlockHolder>();
     playerMovement       = GetComponent <PlayerMovement>();
     pushEffectController = GetComponentInChildren <PushEffectController>();
 }
Esempio n. 3
0
        private void Start()
        {
            playerMovement = GetComponent <PlayerMovement>();
            playerMesh     = GetComponentInChildren <MeshRenderer>();
            playerCollider = GetComponent <Collider>();
            blockHolder    = GetComponent <BlockHolder>();
            ship           = GetComponent <ShipOwner>().OwnShip;
            shipMovement   = ship.gameObject.GetComponentInChildren <ShipMovement>();

            SetShipInputs();
        }