Inheritance: MonoBehaviour
Example #1
0
 public AudioClip som;           //SOM
 //private string maoDireita = "Armature/COG/Body_0/backbone1/backbone2/chest/shoulder_R/arm_R/forearm1_R/forearm2_R/palm_R/mid1_R/Item_R";
 void Start()
 {
     anim            = player.GetComponent <Animator>();
     controlScript   = player.GetComponent <ControlePersonagem> ();
     audioSource     = GetComponent <AudioSource>();
     inventario      = player.GetComponent <Inventario> ();
     sceneController = GameObject.FindGameObjectWithTag("GameController").GetComponentInChildren <CenarioController>();
 }
Example #2
0
    public override void Ativar()
    {
        if (pers == null)
        {
            pers = GetComponentInParent <ControlePersonagem> ();
        }

        caminhar.TentarDisparo();
    }
Example #3
0
    public override void Ativar()
    {
        if (pers == null)
        {
            pers = GetComponentInParent <ControlePersonagem> ();
        }

        pers.SetDirecao(-pers.direcao);
    }
Example #4
0
    [SerializeField] private string cena = ""; //PROXIMA CENA


    void Start()
    {
        loading.SetActive(false);
        audioSource    = GetComponent <AudioSource>();
        anim           = player.GetComponent <Animator>();
        playerPosition = player.GetComponent <Transform> ();
        controlScript  = player.GetComponent <ControlePersonagem> ();
        //playerControl = player.GetComponent<CharacterController> ();
        sceneController = GameObject.FindGameObjectWithTag("GameController").GetComponentInChildren <CenarioController>();
    }
 // Use this for initialization
 void Start()
 {
     pers = GetComponent <ControlePersonagem> ();
 }
Example #6
0
 // Use this for initialization
 void Start()
 {
     anim = GetComponent <Animator> ();
     pers = GetComponent <ControlePersonagem> ();
 }