Hi,
This is the expected behavior (which works fine in the Editor, Android, and iPhone):
8erlq0
So basically when the dragon enter the trigger boxCollider of the canon, the canon aim at it and shoot:

The code:
private void OnTriggerEnter(Collider other)
{
if (other.CompareTag("Player"))
{
if (cAiming.enabled == false)
{
cAiming.enabled = true;
cAiming.StartAiming(other.transform);
}
}
}
private void OnTriggerExit(Collider other)
{
if (other.CompareTag("Player"))
{
cAiming.StopAiming();
}
}
And this is what happens on iPad:
4udcsv
basically nothing, and there is no errors or warnings related to this whatsoever.
Unity version: 2019.4.12f1
Currently i can only think of updating unity and hope for the best, but maybe this is a known issue ?
Thanks!