public void InitialEffect() { Debug.Log("Status initiated"); if (effect == null) { Debug.LogError("effect was null"); statusIcon.HideIcon(); return; } effect.InitialEffect(); statusIcon.ShowIcon(this); }
public void SetIcon(StatusIcon icon) { if (icon == null) { return; } if (statusIcon != null) { //There's already an icon. Remove the one we have. Before setting a new. return; } statusIcon = icon; statusIcon.ShowIcon(this); }