/*******************************/ protected override void Awake() { base.Awake(); shareAI = this; _ballPath = new List <Vector3>(); _shootDirection = Direction.Both; }
public void Update(Identity identity, AiComponent aicompont, InputComponent input) { if (aicompont == null || aicompont.enable == false) { return; } if (identity.isAIControl == true) { if (identity.tag == "tank") { MoveAI.moveAI(aicompont, input); } else if (identity.tag == "gun") { ShootAI.shootAI(aicompont, input); } } }