Example #1
0
    private static void SetSpellControllerPosition(GameObject castSpell, Vector3 controllerPosition)
    {
        SpellController spellControllerScript = castSpell.GetComponent <SpellController>();

        if (spellControllerScript != null)
        {
            spellControllerScript.SetControllerPosition(controllerPosition);
        }
        else
        {
            Debug.Log("No SpellController Script!!");
        }
    }