Exemplo n.º 1
0
 private void OnTriggerEnter(Collider other)
 {
     if (other.GetComponentInParent <twoshpere>() != null && !haveEnter)
     {
         ts        = other.GetComponentInParent <twoshpere>();
         haveEnter = true;
         change    = true;
     }
 }
Exemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     ts        = GameObject.FindObjectOfType <twoshpere>();
     halfCycle = ts.oneCycle * 0.5f;
 }