Ejemplo n.º 1
0
 public static PhysisActionManager getInstance()
 {
     if (instance == null)
     {
         instance = new PhysisActionManager();
     }
     return(instance);
 }
Ejemplo n.º 2
0
 public void LoadResources()
 {
     Debug.Log("Loading Resources!!!");
     arrowFactory  = Singleton <Factory> .Instance;;
     scoreRecorder = Singleton <ScoreRecorder> .Instance;
     physisManager = GetComponent <PhysisActionManager>();
     target        = Instantiate <GameObject>(Resources.Load <GameObject>("Prefabs/target"));
 }
Ejemplo n.º 3
0
 //开始游戏
 void IUserAction.startGame(int mode)
 {
     gameStatus.startGame();
     if (mode == 0)
     {
         Physics.gravity = new Vector3(0, -20F, 0);
         acm             = (PhysisActionManager.getInstance()) as IActionManager;
     }
     else
     {
         acm = (KinematicActionManager.getInstance()) as IActionManager;
     }
 }
Ejemplo n.º 4
0
 void Start()
 {
     CCAction     = gameObject.AddComponent <CCActionManager>() as CCActionManager;
     PhysisAction = gameObject.AddComponent <PhysisActionManager>() as PhysisActionManager;
 }
Ejemplo n.º 5
0
 public IActionManager()
 {
     cc   = new CCActionManager();
     ph   = new PhysisActionManager();
     mode = 0;
 }