public override bool Initialize <T>(T input) { master = input as MasterController; transform = master.transform; if (!master || !transform) { Debug.LogError("The Visual Effects cannot Initialize!"); return(false); } return(true); }
public override bool Initialize <T>(T mController) { master = mController as MasterController; transform = master.PTransform; model = master.PModel; playerCharController = master.PCharController; lookDirection = Quaternion.identity; lastMovementDirection = model.Movement.forward; tweenDirection = Vector3.zero; if (!master || !playerCharController || !transform || !model) { Debug.LogError("The player Movement cannot initialize!"); Debug.Log("Movement Variables: Master-" + master + " Rigidbody-" + playerCharController); Debug.Log("Transform-" + transform + " Model-" + model); return(false); } return(true); }