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