示例#1
0
    //PlayerController playerController;

    // Use this for initialization
    void Start()
    {
        currentFear = 0;
        inFearZone  = false;
        inSafeZone  = false;
        InvokeRepeating("FearTicker", 0f, fearTickTime);
        //playerController = GetComponent<PlayerController>();
        //dialController = FindObjectOfType<DialScript>();
        dialController = DialScript.dialScript;
    }
示例#2
0
 private void Awake()
 {
     if (dialScript == null)
     {
         dialScript = this;
     }
     else if (dialScript != null)
     {
         Destroy(gameObject);
     }
 }
示例#3
0
 // Start is called before the first frame update
 void Start()
 {
     m_dsDialScript = m_goDial.GetComponent <DialScript>();
 }