Inheritance: IPoolable
示例#1
0
 public void RemoveAction(SceneAction action)
 {
     if (_actions.Remove(action))
     {
         action.Actor = null;
     }
 }
示例#2
0
 public virtual void Act(float delta)
 {
     for (int i = 0; i < _actions.Count; i++)
     {
         SceneAction action = _actions[i];
         if (action.Act(delta))
         {
             _actions.RemoveAt(i);
             action.Actor = null;
             i--;
         }
     }
 }
示例#3
0
 public void AddAction(SceneAction action)
 {
     action.Actor = this;
     _actions.Add(action);
 }
示例#4
0
 public void AddAction(SceneAction action)
 {
     Root.AddAction(action);
 }
示例#5
0
文件: Stage.cs 项目: jaquadro/MonoGdx
 public void AddAction(SceneAction action)
 {
     Root.AddAction(action);
 }
示例#6
0
文件: Actor.cs 项目: jaquadro/MonoGdx
 public void RemoveAction(SceneAction action)
 {
     if (_actions.Remove(action))
         action.Actor = null;
 }
示例#7
0
文件: Actor.cs 项目: jaquadro/MonoGdx
 public void AddAction(SceneAction action)
 {
     action.Actor = this;
     _actions.Add(action);
 }