obj_currentTarget = getObjectOfTarget(“Player”);
trans_currentTarget = obj_currentTarget.transform;
Object getObjectOfTarget(string targetName)
{
return GameObject.Find(targetName);
}
i get the error UnityEngine.Object doesn’t have a definition for transform… i just used something similar…