// Use this for initialization
 void Start()
 {
     //initialzing variables
     direction.Set(0, 0, 0);
     upVector.Set(0, 1, 0);
     rightVector.Set(1, 0, 0);
     ControllerPluginWrapper.Initiate();
     rigidbody = player.GetComponent <Rigidbody>();
 }
Beispiel #2
0
 // Use this for initialization
 void Start()
 {
     info   = GetComponent <Info>();
     spells = GetComponent <SpellInventory>();
     ControllerPluginWrapper.Initiate();
     deadPosition = new Vector3(0, -10, 0);
     alive        = true;
     respawnTimer = 5.0f;
 }