public override void ProcessFrame(Playable playable, FrameData info, object playerData)
    {
        base.ProcessFrame(playable, info, playerData);

        trackBinding = playerData as BulletSpownerManager;
        trackBinding.spownerArr [indexofSpowner].spownBullet(bullet);
        //GameObject.Instantiate(bullet, trackBinding.spownerArr [indexofSpowner].transform.position, Quaternion.identity);
    }
Beispiel #2
0
 private void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     else if (instance != this)
     {
         Destroy(this);
     }
     //bulletPoolDic = new Dictionary<string, GameObject>();
     bulletPoolDicList = new DictionaryList <string, GameObject>();
 }
 // Called when the owning graph starts playing
 public override void OnGraphStart(Playable playable)
 {
     spownerManager = GameObject.Find("SpownerManager").GetComponent <BulletSpownerManager>();
     //Debug.Log("OnGraphStart");
 }