Exemple #1
0
    void Awake()
    {
        audioSrc = GetComponent <AudioSource> ();
        animator = GetComponent <Animator>();
        mvScript = GetComponent <PlayerMovementMouse> ();
        if (photonView.isMine)
        {
            TaichiPlayerManager.LocalPlayerInstance = this.gameObject;
        }

        DontDestroyOnLoad(this.gameObject);
    }
Exemple #2
0
 private void Awake()
 {
     selectedGameObject = transform.Find("Selected").gameObject;
     moveScript         = GetComponent <PlayerMovementMouse>();
     SetSelectedVisible(false);
 }
Exemple #3
0
 private void Start()
 {
     player       = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerMovementMouse>();
     scoreManager = FindObjectOfType <ScoreManager>();
     anim         = GameObject.FindGameObjectWithTag("Screen").GetComponent <Animator>();
 }