Beispiel #1
0
 void Start()
 {
     player = GameObject.FindGameObjectWithTag("Player");
     if (on)
     {
         StartMotor();
     }
     emitter   = GetComponent <GasEmitter> ();
     hitPoints = maxHitPoints;
 }
Beispiel #2
0
 void Start()
 {
     emitter         = GetComponent <GasEmitter> ();
     hitPoints       = maxHitPoints;
     initialPosition = transform.position;
 }