Ejemplo n.º 1
0
 void Start()
 {
     rb          = GetComponent <Rigidbody>();
     blockHolder = GetComponent <BlockHolder>();
     ship        = GetComponent <ShipOwner>().OwnShip;
     shipManager = GameObject.FindWithTag("ShipManager").GetComponent <ShipManager>();
 }
Ejemplo n.º 2
0
 void Start()
 {
     audioManager         = GameObject.FindWithTag("AudioManager").GetComponent <AudioManager>();
     blockHolder          = GetComponent <BlockHolder>();
     playerMovement       = GetComponent <PlayerMovement>();
     pushEffectController = GetComponentInChildren <PushEffectController>();
 }
Ejemplo 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();
        }