コード例 #1
0
    /// <summary>
    /// Makes time move (tick) forward for the modules.  Ticking time forward allows for the water to flow through
    /// the system.
    /// </summary>
    private void Awake()
    {
        if(current == null)
        {
            current=this;

        }
        else
         Destroy(gameObject);
    }
コード例 #2
0
 // Start is called before the first frame update
 void Awake()
 {
     _waterFlowController = GetComponent <WaterFlowController>();
 }