예제 #1
0
 public static Judge getInstance()
 {
     if (_instance == null)
     {
         _instance = new Judge();
     }
     return(_instance);
 }
예제 #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);
            }
        }
예제 #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();
        }
예제 #4
0
 void Start()
 {
     action    = Director.getInstance().currentSceneController as IUserAction;
     judgement = Judge.getInstance();
 }