Beispiel #1
0
 void Start()
 {
     usescript = GetComponent <UseDelegator>();
     if (!visible && !isFull)
     {
         usescript.use = Water;
     }
     else
     {
         usescript.use = NoWater;
     }
 }
Beispiel #2
0
 private void Start()
 {
     doorAnim      = gameObject.GetComponent <Animator>();
     usescript     = GetComponent <UseDelegator>();
     usescript.use = PlayAnimation;
 }
Beispiel #3
0
 // Start is called before the first frame update
 void Start()
 {
     usescript     = GetComponent <UseDelegator>();
     usescript.use = turnonoff;
 }
Beispiel #4
0
 void Start()
 {
     bucket        = GetComponent <FillBucket>();
     usescript     = GetComponent <UseDelegator>();
     usescript.use = CleanDirty;
 }