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

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