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