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