예제 #1
0
        private void Start()
        {
            // Instantiate player on scene
            Transform instantiatedPlayer = Instantiate(this.Player, this.PlayerSpawn, Quaternion.identity) as Transform;
            Instantiate(this.SoulBag);
            if (instantiatedPlayer != null)
            {
                this._kosorub = instantiatedPlayer.GetComponent<Kosorub>();
                this._health = instantiatedPlayer.GetComponent<Health>();

                // Game variables
                this._souls = 0;

                this._uiManager.SetSouls(this._souls);
                this._uiManager.SetHealth(this._health.Healthpoints);
            }
        }
예제 #2
0
        private void Start()
        {
            // Instantiate player on scene
            Transform instantiatedPlayer = Instantiate(this.Player, this.PlayerSpawn, Quaternion.identity) as Transform;

            Instantiate(this.SoulBag);
            if (instantiatedPlayer != null)
            {
                this._kosorub = instantiatedPlayer.GetComponent <Kosorub>();
                this._health  = instantiatedPlayer.GetComponent <Health>();

                // Game variables
                this._souls = 0;

                this._uiManager.SetSouls(this._souls);
                this._uiManager.SetHealth(this._health.Healthpoints);
            }
        }