Exemplo n.º 1
0
    void Awake()
    {
        playerGameObject     = GameObject.FindWithTag("Player");
        player               = playerGameObject.GetComponent <Transform>();
        VikingControlsScript = playerGameObject.GetComponent <VikingControls>();
        Viking_animScript    = playerGameObject.GetComponent <VikingAnimator>();

        vikingShipObject          = GameObject.FindWithTag("Viking_Ship");
        ShipInsideColliderScript  = vikingShipObject.GetComponentInChildren <ShipInsideCollider>();
        ShipLandingColliderScript = vikingShipObject.GetComponentInChildren <ShipLandingCollider>();
        vikingShip = vikingShipObject.GetComponent <Transform>();

        landingSpot = vikingShipObject.GetComponentInChildren <Transform>().GetChild(1).GetChild(2);
    }
Exemplo n.º 2
0
 void Awake()
 {
     controller           = GetComponent <CharacterController>();
     VikingAnimatorScript = GetComponent <VikingAnimator>();
 }