예제 #1
0
    // Start is called before the first frame update
    void Start()
    {
        _playerstatus = FindObjectOfType <playershooting>();

        if (PlayerPrefs.GetString("loadit") == "true")
        {
            healcount = _playerstatus.mystats.healcount;
        }
        else if (PlayerPrefs.GetString("loadit") == "false")

        {
            healcount = 0;
        }
    }
예제 #2
0
    // Start is called before the first frame update
    void Start()
    {
        _playerstats = GameObject.FindObjectOfType <playershooting>();

        if (PlayerPrefs.GetString("loadit") == "true")
        {
            life = _playerstats.mystats.life;
        }
        else if (PlayerPrefs.GetString("loadit") == "false")

        {
            life = 1;
            lifeimage.fillAmount = 1;
        }
    }
예제 #3
0
    private void Awake()
    {
        _playerstat = GameObject.FindObjectOfType <playershooting>();

        load();
    }