void Awake() { Instance = this; _transform = transform; materials = new ArrayList(); materialsOrg = new ArrayList(); }
void Awake() { characterMesh = GameObject.Find("MainChar") as GameObject; CharacterController = GetComponent("CharacterController") as CharacterController; Instance = this; TP_Camera.UseExistingOrCreateNewMainCamera(); }
void Awake() { if (Instance == null) { Instance = this; } }
void Awake() { CharacterController = GetComponent("CharacterController") as CharacterController; Instance = this; TP_Camera.AttachCamera(); _transform = transform; }
void Awake() { Instance = this; _transform = transform; materials = new ArrayList(); materialsOrg = new ArrayList(); transparentShader = Shader.Find("Transparent/Diffuse"); }
void Awake() { S = this; // CAMERA SHAKE ################### //if (camTransform == null) camTransform = GetComponent(typeof(Transform)) as Transform; cameraTransform = this.transform; }
public float deadZone = 0.1f; // holds dead space (AKA responsiveness to input) void Awake() { _characterController = GetComponent <CharacterController>(); _instance = this; // Use Exsiting Or Create New Main Camera TP_Camera.UseExisitingOrCreateNewMainCamera(); }
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 }
// Awake is called before Start void Awake() { characterController = GetComponent <CharacterController>(); instance = this; // Using the old camera system TP_Camera.UseExistingOrCreateNewMainCamera(); }
// Use this for initialization void Awake() { // assign references into our static fields CharacterController = GetComponent("CharacterController") as CharacterController; Instance = this; // performs initial camera check - exists? TP_Camera.UseExistingOrCreateNewMainCam(); }
void Awake() { CController = GetComponent("CharacterController") as CharacterController; Instance = this; if (UseTPCamera) { TP_Camera.UseExistingOrCreateNewMainCamera(); } }
void Awake() { if (instance != null) { Debug.Log("Instance of TP_Camera already exists"); return; } instance = this; }
// Awake is called before Start void Awake() { instance = this; trans = GetComponent <Transform>(); gun = GameObject.Find("Player/Model_Player/Gun"); // Lock screen cursor Cursor.lockState = cursorMode; //gun.SetActive(false); }
void Awake() { Instance = this; CharController = GetComponent("CharacterController") as CharacterController; CharController.height = 0.12f; CharController.radius = 0.02f; CharController.center = new Vector3(0, 0.06f, 0); TP_Camera.SetupCamera(); }
void Start() { rb = GetComponentInChildren <Rigidbody>(); TP_Camera.UseExistingOrCreateNewMainCamera(); carryingController = GetComponent <CarryingController>(); myPhotonView = GetComponent <PhotonView> (); if (name == "Em") { emAbility = GetComponent <EmAbilityBehavior>(); } }
void Awake() { if (instance != null) { Debug.Log("Instance of TP_Controller already exists"); return; } instance = this; characterController = GetComponent <CharacterController>(); TP_Camera.CreateCamera(); }
void OnTriggerEnter(Collider other) { if (other.tag == "Player") { Debug.Log("WIN!"); TP_Camera thirdPerCam = Camera.main.GetComponent <TP_Camera>(); if (thirdPerCam) { thirdPerCam.enabled = false; } GameObject [] bothRats = GameObject.FindGameObjectsWithTag("Player"); for (int i = 0; i < bothRats.Length; i++) { bothRats[i].SetActive(false); } winCam.gameObject.SetActive(true); } }
void Awake() { _instance = this; }
void Awake() { Instance = this; }
void Start() { CharacterController = GetComponent("CharacterController") as CharacterController; Instance = this; TP_Camera.UseExistingOrCreateNewMainCamera(); }
/*public bool shakeSwitch; * public const float SetshakeValue = 5; * public float shakeValue;*/ void Awake() { Instance = this; myTransform = transform; }
void Start() { instance = this; }