Exemple #1
0
    void boolStage()
    {
        int cnt = 0;

        for (int i = 0; i < stages.Length; i++)
        {
            stageRule = stages[i].GetComponent <StageRule>();
            if (stageRule.currentStageState == StageState.Fly || stageRule.currentStageState == StageState.Down || stageRule.currentStageState == StageState.Wind_hit)
            {
                cnt++;
                gameRule.falsePlay();
            }
            if (cnt == 0)
            {
                gameRule.truePlay();
            }
        }
    }
Exemple #2
0
    public bool isRuleTrue(string ruleKey)
    {
        StageRule rule = GetRule(ruleKey);

        return(rule != null && rule.Value == "true");
    }
Exemple #3
0
    // Start is called before the first frame update
    void Start()
    {
        GameObject objColliderTriggerParent = gameObject.transform.parent.gameObject;

        stage = objColliderTriggerParent.GetComponent <StageRule>();
    }
Exemple #4
0
 public void GetStage(StageRule rule)
 {
     this.rule = rule;
 }
Exemple #5
0
 // Start is called before the first frame update
 void Start()
 {
     bubbleText = gameObject.GetComponent <Text>();
     stage      = transform.root.gameObject.GetComponent <StageRule>();
     isChange   = false;
 }