Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.AI;
- using UnityEngine.UI;
- public class WarController : MonoBehaviour
- {
- public bool attack;
- public Button bAttack;
- public void Start()
- {
- attack = false;
- bAttack.onClick.AddListener(Attack);
- }
- public void Update()
- {
- if (attack)
- {
- attack = false;
- //
- }
- }
- public void Attack()
- {
- attack = !attack
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement