Esempio n. 1
0
 public static Judge getInstance()
 {
     if (_instance == null)
     {
         _instance = new Judge();
     }
     return(_instance);
 }
Esempio n. 2
0
        void OnTriggerEnter(Collider other)
        {
            if (this.gameObject.tag == "arrow")
            {
                //this.gameObject.GetComponent<Rigidbody>().velocity = Vector3.zero;
                //this.gameObject.GetComponent<Rigidbody>().isKinematic = true;

                this.gameObject.tag = "head";

                Judge.getInstance().addScore(other.transform.gameObject.GetComponent <SetScore>().score);
            }
        }
Esempio n. 3
0
        void Awake()
        {
            Director director = Director.getInstance();

            director.setFPS(60);
            director.currentSceneController = this;

            judgement = Judge.getInstance();
            ruler     = Ruler.getInstance();

            loadInitSetting();
            actionManager = this.gameObject.AddComponent <SSActionManager>();
            actionManager.setCallback(this);

            this.gameObject.AddComponent <UserGUI>();
            director.currentSceneController.LoadResources();
        }
Esempio n. 4
0
 void Start()
 {
     action    = Director.getInstance().currentSceneController as IUserAction;
     judgement = Judge.getInstance();
 }