コード例 #1
0
    void Awake()
    {
        GameObject player1 = GameObject.Find("FPSController");

        healthplayer = player1.GetComponent <healthscriptplayer> ();
        anim         = GetComponent <Animator>();
    }
コード例 #2
0
    // Use this for initialization
    void Start()
    {
        GameObject player1 = GameObject.Find("FPSController");

        healthplayer   = player1.GetComponent <healthscriptplayer> ();
        Time.timeScale = 1;
        hidePaused();
        Debug.Log(pauseObjects.Length);
    }