Esempio n. 1
0
    private PourStream CreateStream()
    {
        GameObject streamObject = Instantiate(_streamPrefab, _origin.position, Quaternion.identity, _origin);
        PourStream pourStream   = streamObject.GetComponent <PourStream>();

        return(pourStream);
    }
Esempio n. 2
0
 private void StartPour()
 {
     _currentStream = CreateStream();
     _currentStream.SetColor(_color);
     _currentStream.SetStreamScale(_streamScale);
     _currentStream.IgnoreCollider(_objectCollider);
     _currentStream.Begin();
 }
Esempio n. 3
0
 private void EndPour()
 {
     _currentStream.End();
     _currentStream = null;
 }