Exemplo n.º 1
0
    public PlayerStructs(Transform trans)
    {
        //注意 此时可以将AnimProxy传给Model
        temp        = trans;
        control     = new PosImplementation(trans);
        animControl = new AnimProxy();
        targetTime  = RPGLogicBase.Time.realTimeSinceStartUp + Random.Range(0, 5f);
        rotControl  = new RotationImplementation(trans);

        GameLoopTrigger.inst.RegisteUpdate(Update);
    }
Exemplo n.º 2
0
 public PlayerRotationBehaviour(IRotationControl rotationControl)
 {
     this.rotationControl = rotationControl;
 }