public static Aura AddAura(GameObject go, AuraTemplate template, float durationOverride) { var aura = GameObjectManager.Instance.AddComponent <Aura>(go); aura.StartAura(template, durationOverride); return(aura); }
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 }
public void StartAura(IAuraController controller, AuraTemplate template) { StartAura(controller, template, template.Duration); }
public void StartAura(AuraTemplate template, float duration) { StartAura(null, template, duration); }
public void StartAura(AuraTemplate template) { StartAura(null, template, template.Duration); }