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>(); }
public override void Ativar() { if (pers == null) { pers = GetComponentInParent <ControlePersonagem> (); } caminhar.TentarDisparo(); }
public override void Ativar() { if (pers == null) { pers = GetComponentInParent <ControlePersonagem> (); } pers.SetDirecao(-pers.direcao); }
[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> (); }
// Use this for initialization void Start() { anim = GetComponent <Animator> (); pers = GetComponent <ControlePersonagem> (); }