Esempio n. 1
0
 // Use this for initialization
 void Start()
 {
     disabledOnSceneStart = false;
     eyes           = gameObject.GetComponent <Animation>();
     possMess       = GameObject.Find("Possession Master").GetComponent <PossessionMaster>();
     mouseRotatorLR = gameObject.GetComponent <SimpleMouseRotator>();
     mouseRotatorUD = gameObject.GetComponentsInChildren <SimpleMouseRotator>()[1];
     characterMover = gameObject.GetComponentInChildren <FirstPersonCharacter>();
 }
Esempio n. 2
0
 // Use this for initialization
 protected override void Start()
 {
     base.Start();
     //Pearl's variable intialization
     scaredState   = state.NotScared;
     isCrawling    = isFleeing = fleeCooldown = cameraRot = false;
     currentFear   = currentTimeScream = shakeTime = cooldown = 0.0f;
     scareInc      = SCARERATE;
     navAgent      = GetComponent <NavMeshAgent> ();
     thirdPChar    = GetComponent <ThirdPersonCharacter> ();
     thirdPControl = GetComponent <ThirdPersonUserControl> ();
     posMast       = GameObject.Find("Possession Master").GetComponent <PossessionMaster> ();
 }
Esempio n. 3
0
 // Use this for initialization
 void Start()
 {
     selectionMode = false;
     possMaster    = GameObject.Find("Possession Master").GetComponent <PossessionMaster>();
     julia         = GameObject.Find("Julia").GetComponent <Astral>();
 }
Esempio n. 4
0
 //Use this for initialization
 private void Start()
 {
     posMaster = GameObject.Find("Possession Master").GetComponent <PossessionMaster>();
 }