Example #1
0
 void Awake()
 {
     characterMesh       = GameObject.Find("MainChar") as GameObject;
     CharacterController = GetComponent("CharacterController") as CharacterController;
     Instance            = this;
     TP_Camera.UseExistingOrCreateNewMainCamera();
 }
Example #2
0
    CharacterController controller;     //the character controller attached the the character


    void Awake()
    {
        //get the character controller component
        controller = GetComponent("CharacterController") as CharacterController;                //cast the return value of getComponent to type CharacterController
        //Debug.Log("Got the character controller");

        TP_Camera.UseExistingOrCreateNewMainCamera();           //call method from TP_Camera
    }
Example #3
0
    // Awake is called before Start
    void Awake()
    {
        characterController = GetComponent <CharacterController>();
        instance            = this;

        // Using the old camera system
        TP_Camera.UseExistingOrCreateNewMainCamera();
    }
Example #4
0
 void Awake()
 {
     CController = GetComponent("CharacterController") as CharacterController;
     Instance    = this;
     if (UseTPCamera)
     {
         TP_Camera.UseExistingOrCreateNewMainCamera();
     }
 }
Example #5
0
 void Start()
 {
     rb = GetComponentInChildren <Rigidbody>();
     TP_Camera.UseExistingOrCreateNewMainCamera();
     carryingController = GetComponent <CarryingController>();
     myPhotonView       = GetComponent <PhotonView> ();
     if (name == "Em")
     {
         emAbility = GetComponent <EmAbilityBehavior>();
     }
 }
Example #6
0
 void Start()
 {
     CharacterController = GetComponent("CharacterController") as CharacterController;
     Instance            = this;
     TP_Camera.UseExistingOrCreateNewMainCamera();
 }