示例#1
0
 public Scenarion(int scenarionId, ScenarionType scenarionType, ScenarionConditionType scenarionConditionType, bool isOnceEvent, List <ScenarionAction> scenarionActions)
 {
     this.scenarionId            = scenarionId;
     this.scenarionType          = scenarionType;
     this.scenarionConditionType = scenarionConditionType;
     this.isOnceEvent            = isOnceEvent;
     this.scenarionActions       = scenarionActions;
 }
示例#2
0
 public Scenarion(int scenarionId, ScenarionType scenarionType, ScenarionConditionType scenarionConditionType, int userPlayer, int enemyPlayer, bool isOnceEvent, List <ScenarionAction> scenarionActions)
 {
     this.scenarionId            = scenarionId;
     this.scenarionType          = scenarionType;
     this.scenarionConditionType = scenarionConditionType;
     this.userPlayer             = userPlayer;
     this.enemyPlayer            = enemyPlayer;
     this.isOnceEvent            = isOnceEvent;
     this.scenarionActions       = scenarionActions;
 }
    public void SetActionName(int id, ScenarionType action)
    {
        name           = id.ToString();
        ActorName.text = string.Format("{0},{1}", id, Enum.GetName(typeof(ScenarionType), action));
        switch (action)
        {
        case ScenarionType.Openning:
            GetComponent <Image>().color = Color.blue;
            break;

        case ScenarionType.Event:
            GetComponent <Image>().color = Color.green;
            break;

        case ScenarionType.StageClear:
            GetComponent <Image>().color = Color.red;
            break;
        }
    }