Ejemplo n.º 1
0
    // Use this for initialization

    void Awake()
    {
        if (Player_Inputs.instance == null)
        {
            Player_Inputs.instance = this;
        }
        else
        {
            Destroy(this.gameObject);
        } // else
    }     // fin del Awake
Ejemplo n.º 2
0
//    Player_View colliderPlayer = new Player_View();

    // Use this for initialization
    void Start()
    {
        playerInputs = GameObject.Find("Panel_inputs").GetComponent <Player_Inputs>();
    }
 private void Awake()
 {
     playerAnimator      = GetComponent <Animator>();
     playerInputControls = new Player_Inputs();
     playerConversant    = GetComponent <PlayerConversant>();
 }