public static CCCharacterMove GetSSAction(Vector3 target) { CCCharacterMove action = ScriptableObject.CreateInstance <CCCharacterMove>(); action.target = target; action.mid = target; return(action); }
public void moveCharacter(GameObject obj, Vector3 dest) { CCCharacterMove characterMove = CCCharacterMove.GetSSAction(dest); this.RunAction(obj, characterMove, this); }