Example #1
0
 private void Start()
 {
     mTransform = this.transform;
     rigidbody  = GetComponent <Rigidbody>();
     anim       = GetComponentInChildren <Animator>();
     hashes     = new AnimHashes();
 }
Example #2
0
        private void Start()
        {
            Hashes = new AnimHashes();

            if (currentState != null)
            {
                currentState.OnEnter(this);
            }
        }
Example #3
0
 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>();
 }