| 12345678910111213141516171819202122232425262728293031 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.Assertions;
- public class CannonFireBehavior : MonoBehaviour
- {
- [SerializeField] public CannonController CannonParent;
- // Start is called before the first frame update
- void Start()
- {
- Debug.Assert(CannonParent);
- }
- // Update is called once per frame
- void Update()
- {
-
- }
- public void CannonFire()
- {
- CannonParent.CannonFireAtPosition();
- }
- public void ExitCannonFire()
- {
- CannonParent.ExitShot();
- }
- }
|