【Unity】iTweenでCallbackを設定する

ITweenでCallBackを設定する方法について。

  Hashtable hash = new Hashtable();
  hash.Add("x", -0.12f);
  hash.Add("time", 5f);
  hash.Add("oncompletetarget", gameObject); // メソッドがあるオブジェクト
  hash.Add("oncomplete", "EndAnimation"); // 実行するメソッド名
  iTween.RotateBy(objects[30], hash);