Project setup
Script In AimArrowStuff:
CharContrl cs = gameObject.GetComponent () as CharContrl;
How can I fix this?
(Ignore input errors please )
Project setup
Script In AimArrowStuff:
CharContrl cs = gameObject.GetComponent () as CharContrl;
How can I fix this?
(Ignore input errors please )
At first sight, you are trying to access the CharControl with:
gameObject.GetComponent<CharControl>();
but that would mean the other script is on that same object and I don’t see any DrawAimingLine on this game object.
If the two components are not on the same objects you first need to find the other one and this has 1000 of answers here.