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);
            }
        }
Beispiel #2
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();
        }
Beispiel #3
0
 void Start()
 {
     action    = Director.getInstance().currentSceneController as IUserAction;
     judgement = Judge.getInstance();
 }