コード例 #1
0
 private void LoadComponents()
 {
     _cachedTransform   = base.transform;
     _cachedGameObject  = base.gameObject;
     _unityBody         = GetComponent <UnityLSBody>();
     _animator          = GetComponent <LSAnimatorBase>();
     _attachedAbilities = GetComponents <Ability>();
 }
コード例 #2
0
ファイル: LSAgent.cs プロジェクト: zzuumm/LockstepFramework
 private void LoadComponents()
 {
     _cachedTransform  = base.transform;
     _cachedGameObject = base.gameObject;
     //TODO: Ensure that this isn't GhostLSBody or any other bodies attached to the GO
     _unityBody         = GetComponent <UnityLSBody> ();
     _animator          = GetComponent <LSAnimatorBase>();
     _attachedAbilities = GetComponents <Ability>();
 }
コード例 #3
0
 void Awake()
 {
     animator                = GetComponent <LSAnimatorBase>();
     animator.onStatePlay   += HandleOnStatePlay;
     animator.onImpulsePlay += HandleOnImpulsePlay;
 }