Esempio n. 1
0
 void Awake()
 {
     Instance = this;
     if (cameraMain == null)
     {
         cameraMain = GameObject.Find("Main Camera").GetComponent <Camera>();
     }
     TPC        = GetComponent <CharacterController>();
     TPA        = GetComponent <TP_Animator>();
     PSEmission = PS.emission;
     PSMain     = PS.main;
 }
Esempio n. 2
0
        void Awake()
        {
            Instance            = this;
            characterController = GetComponent <CharacterController>();
            if (TP_Camera.Instance.GetComponentInChildren <Camera>() != null)
            {
                TP_Camera.Instance.player       = this.transform;
                TP_Camera.Instance.targetLookAt = this.transform.Find("TargetLookAt");
            }

            TPMotor = GetComponent <TP_Motor>();
            TPAnim  = GetComponent <TP_Animator>();
        }
Esempio n. 3
0
 private void Awake()
 {
     Instance = this;
     TPMotor  = GetComponent <TP_Motor>();
 }
Esempio n. 4
0
 // Use this for initialization
 void Start()
 {
     TPA = GetComponent <TP_Animator>();
     TPM = GetComponent <TP_Motor>();
 }