Hoşgeldin Misafir

Unity karakter hasar alınca kendiliğinden projeyi durduruyor

GozGoz

26 Ara 2017
599 Mesaj

Aktiflik

Seviye

Deneyim

TIM / GÖREV:
Kod:panoya kopyala

Kod:
using System.Collections;
using System.Collections.Generic;
using Unity.VisualScripting;
using UnityEngine;


public class characterhealth : MonoBehaviour
{
    // health
    public int Maxhealth = 100;
    public int currenthealth;
    public Healthbar healtbar;




    //Enemy AttackTime
    public bool enemyattack;
    public float enemytimer;




    void Start()
    {
        currenthealth = Maxhealth;
        enemytimer = 1.5f;
    }
    // düşmanın vurma arlığı
    void...

Read more