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; }
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>(); }
private void Awake() { Instance = this; TPMotor = GetComponent <TP_Motor>(); }
// Use this for initialization void Start() { TPA = GetComponent <TP_Animator>(); TPM = GetComponent <TP_Motor>(); }