Beispiel #1
0
 public override void Update()
 {
     if (enable)
     {
         FirstSceneController sc = CurrentDirector.getInstance().currentSceneController as FirstSceneController;
         sc.score = sc.score + Mathf.CeilToInt(FirstSceneController.times / 10) + Mathf.FloorToInt(120 / (transform.rotation.x + 30));
         destory  = true;
     }
 }
    private void Awake()
    {
        CurrentDirector director = CurrentDirector.getInstance();

        director.setFPS(60);
        director.currentSceneController = this;
        this.gameObject.AddComponent <UFOFactory>();
        this.gameObject.AddComponent <ActionController>();
        this.gameObject.AddComponent <UserGUI>();
        factory = Singleton <UFOFactory> .Instance;
    }
 public void Start()
 {
     sceneController            = (FirstSceneController)CurrentDirector.getInstance().currentSceneController;
     sceneController.actionCtrl = this;
     disks = Singleton <UFOFactory> .Instance;
 }
 void Start()
 {
     action = CurrentDirector.getInstance().currentSceneController as FirstSceneController;
     fontstyle1.fontSize = 30;
 }