示例#1
0
    void Start()
    {
        if (Obj != null)
        {
            gM = Obj.GetComponent <GameManager>();
        }

        if (Cous != null)
        {
            CousM = Cous.GetComponent <cursorManager>();
        }

        Ppoint = transform.position;
        rig    = GetComponent <Rigidbody2D>();
    }
示例#2
0
 void Start()
 {
     _instance = this;
     Cursor.SetCursor(cursor_normal, hotspot, mode);
 }