private void LoadComponents() { _cachedTransform = base.transform; _cachedGameObject = base.gameObject; _unityBody = GetComponent <UnityLSBody>(); _animator = GetComponent <LSAnimatorBase>(); _attachedAbilities = GetComponents <Ability>(); }
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>(); }
public EnvironmentBodyInfo( UnityLSBody body, Vector3d position, Vector2d rotation ) { this.Body = body; this.Position = position; this.Rotation = rotation; }