예제 #1
0
    public void DoUpdate()
    {
        //切割时间
        //lerp position and rotation
        //play effect
        //etc..

        Debug.Log("DoUpdate...");
        if (frameInfoList.Count > 0)
        {
            frameInfo = frameInfoList[0];
            frameInfoList.RemoveAt(0);
            Debug.Log("DoUpdate frame " + frameInfo.frame + " t " + Time.time);
        }
    }
예제 #2
0
    public virtual void DoFixedUpdate()
    {
        //TODO moveStep skillStep etc...
        unitFrameInfo = GenericObjectPool <UnitFrameInfo> .Get();

        unitFrameInfo.frame     = FrameManager.currentNetworkFrame;
        unitFrameInfo.canMove   = canMove;
        unitFrameInfo.canRotate = canRotation;
        if (canMove)
        {
            unitFrameInfo.position = position;
        }
        if (canRotation)
        {
            unitFrameInfo.rotation = rotation;
        }
        Debug.Log("DoFixedUpdate...");
    }
예제 #3
0
 public void AddFrameInfo(UnitFrameInfo frameInfo)
 {
     frameInfoList.Add(frameInfo);
 }
예제 #4
0
    public void FireUnitFrameInfo(UnitFrameInfo unitInfo)
    {
        UnitFrameView unitFrameView = sceneAssetsManager.unitFrameViewMap[unitInfo.id];

        unitFrameView.AddFrameInfo(unitInfo);
    }
예제 #5
0
 public virtual void Destroy()
 {
     unitFrameInfo = null;
     myInfo        = null;
 }