Пример #1
0
    void Start()
    {
        winey            = Resources.Load <Sprite>("KingChina");
        money            = Resources.Load <Sprite>("money");
        normalBackground = Resources.Load <Sprite>("normalbackground");

        if (!DEBUG)
        {
            // If there hasn't assigned BodySourceManager, byebye
            if (bodySourceManager == null)
            {
                return;
            }

            bodyManager = bodySourceManager.GetComponent <BodySourceManager>();
            // If there is no BodySourceManager
            if (bodyManager == null)
            {
                return;
            }

            coordinate = bodyManager.GetCoordinate();
        }
        // for animation
        m_animator = gameObject.GetComponent <Animator>();
        m_animator.SetBool("handclosebool", false);
    }
    void Start()
    {
        hint.SetActive(false);
        spriteRenderer = GetComponent <SpriteRenderer>();

        if (!DEBUG)
        {
            // If there hasn't assigned BodySourceManager, byebye
            if (bodySourceManager == null)
            {
                return;
            }

            bodyManager = bodySourceManager.GetComponent <BodySourceManager>();
            // If there is no BodySourceManager
            if (bodyManager == null)
            {
                return;
            }

            coordinate = bodyManager.GetCoordinate();
        }
        // for animation
        m_animator = gameObject.GetComponent <Animator>();
        m_animator.SetBool("handclosebool", false);
    }