コード例 #1
0
    protected virtual void OnCollisionEnter(Collision collision)
    {
        if (collision.collider.tag == PongBall.TAG)
        {
            switch (GetSensorimotor().GetNARSHost().type)
            {
            case NARSHost.NARSType.NARS:
                NARSVsONA_GameManager.GetInstance().AddNARSBlock();
                break;

            case NARSHost.NARSType.ONA:
                NARSVsONA_GameManager.GetInstance().AddONABlock();
                break;

            default:
                break;
            }

            if (GetSensorimotor() != null)
            {
                GetSensorimotor().Praise();
            }
        }
    }
コード例 #2
0
 private void Start()
 {
     _instance = this;
 }