コード例 #1
0
ファイル: Status.cs プロジェクト: Chlaxi/DungeonRaiders
    public void InitialEffect()
    {
        Debug.Log("Status initiated");
        if (effect == null)
        {
            Debug.LogError("effect was null");
            statusIcon.HideIcon();
            return;
        }

        effect.InitialEffect();
        statusIcon.ShowIcon(this);
    }
コード例 #2
0
ファイル: Status.cs プロジェクト: Chlaxi/DungeonRaiders
    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);
    }