private void Start() { mTransform = this.transform; rigidbody = GetComponent <Rigidbody>(); anim = GetComponentInChildren <Animator>(); hashes = new AnimHashes(); }
private void Start() { Hashes = new AnimHashes(); if (currentState != null) { currentState.OnEnter(this); } }
private void Start() { mTransform = this.transform; collider = GetComponent <CapsuleCollider>(); rigidbody = GetComponent <Rigidbody>(); anim = GetComponentInChildren <Animator>(); hashes = new AnimHashes(); animData = new AnimatorData(anim); //vaultData = new VaultData(); }
public void InitReferences() { mTransform = this.transform; rigidbody = GetComponent <Rigidbody>(); anim = GetComponentInChildren <Animator>(); hashes = new AnimHashes(); vaultData = new VaultData(); coverData = new CoverData(); stats.health = 100; healthChangedFlag = true; characterHook = GetComponentInChildren <CharacterHook>(); }