Ejemplo n.º 1
0
    // Start is called before the first frame update
    void Start()
    {
        _controller       = GetComponent <CharacterController>();
        this.playerHealth = GetComponent <HealthControl>();
        this.velocity     = new Vector3(0, 0, 0);

        playerHealth.setMaxHealth(100);
    }
Ejemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     health.setMaxHealth(stats.maxHealth);
     if (rootTransform == null)
     {
         rootTransform = transform;
     }
 }