コード例 #1
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();
        }
コード例 #2
0
 private void Awake()
 {
     rb           = GetComponent <Rigidbody>();
     shipMovement = GetComponent <ShipMovement>();
 }