Exemple #1
0
        public void Initialize(
            Vector2d position = default(Vector2d),
            Vector2d rotation = default(Vector2d))
        {
            IsActive     = true;
            CheckCasting = true;


            CachedGameObject.SetActive(true);
            if (Body.IsNotNull())
            {
                Body.Initialize(position.ToVector3d(), rotation);
            }

            if (Influencer.IsNotNull())
            {
                Influencer.Initialize();
            }



            abilityManager.Initialize();
            if (Animator.IsNotNull())
            {
                Animator.Initialize();
            }
        }
Exemple #2
0
 public void InitializeTimed(Vector2d forward)
 {
     Forward   = forward;
     Direction = forward.ToVector3d();
 }