Пример #1
0
        private IEnumerator Grow()
        {
            yield return(new WaitForSeconds(30.0f));

            if (Constant.GenWaterPower <= cell.waterPower)
            {
                // Player 生成
                CreatePlayer();
                StateWait.ChangeState(cell);
                yield break;
            }
            else
            {
                // 再びGrowへ。
                // TODO: 周りに水分を撒くなど仕様を考える
                StateGrow.ChangeState(cell);
                yield break;
            }
        }
Пример #2
0
 public void OnStart()
 {
     cell.GetComponent <MeshRenderer>().material = PrefabManager.FarmMaterial;
     StateWait.ChangeState(cell);
 }