Esempio n. 1
0
 void Start()
 {
     inst = this;
     _body = gameObject.GetComponent<Rigidbody>();
     _character_model = Util.FindInHierarchy(gameObject,"CharacterModel");
     _body.freezeRotation = true;
     _bullet_cooldown = 0;
 }
 void Start()
 {
     inst = this;
     _body = gameObject.GetComponent<Rigidbody>();
     _body.freezeRotation = true;
     _bullet_cooldown = 0;
     _normal_camera = Util.FindInHierarchy(gameObject,"Main Camera");
     _flame = Util.FindInHierarchy(gameObject,"Flame");
     _flame.SetActive(false);
 }