Пример #1
0
        public static Aura AddAura(GameObject go, AuraTemplate template, float durationOverride)
        {
            var aura = GameObjectManager.Instance.AddComponent <Aura>(go);

            aura.StartAura(template, durationOverride);
            return(aura);
        }
Пример #2
0
        public void StartAura(IAuraController controller, AuraTemplate template, float duration)
        {
            Controller   = controller;
            IsControlled = controller != null;
            Template     = template;
            StartTime    = Time.time;
            Duration     = duration;

            // TODO: Create Prefab
            // TODO: Create AuraEffectHandlers and start aura + pulsing
        }
Пример #3
0
 public void StartAura(IAuraController controller, AuraTemplate template)
 {
     StartAura(controller, template, template.Duration);
 }
Пример #4
0
 public void StartAura(AuraTemplate template, float duration)
 {
     StartAura(null, template, duration);
 }
Пример #5
0
 public void StartAura(AuraTemplate template)
 {
     StartAura(null, template, template.Duration);
 }