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(); } } }
public bool isRuleTrue(string ruleKey) { StageRule rule = GetRule(ruleKey); return(rule != null && rule.Value == "true"); }
// Start is called before the first frame update void Start() { GameObject objColliderTriggerParent = gameObject.transform.parent.gameObject; stage = objColliderTriggerParent.GetComponent <StageRule>(); }
public void GetStage(StageRule rule) { this.rule = rule; }
// Start is called before the first frame update void Start() { bubbleText = gameObject.GetComponent <Text>(); stage = transform.root.gameObject.GetComponent <StageRule>(); isChange = false; }