コード例 #1
0
ファイル: PlayerCharacter.cs プロジェクト: amgiunta/Incubo
    //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
ファイル: DialScript.cs プロジェクト: amgiunta/Incubo
 private void Awake()
 {
     if (dialScript == null)
     {
         dialScript = this;
     }
     else if (dialScript != null)
     {
         Destroy(gameObject);
     }
 }
コード例 #3
0
ファイル: TVManager.cs プロジェクト: ajhutchi/TVStatic
 // Start is called before the first frame update
 void Start()
 {
     m_dsDialScript = m_goDial.GetComponent <DialScript>();
 }