//-------------------------------------------------------------------------------------------------------
    protected void onAnimationPlaying(INGUIAnimation window, bool isBreak)
    {
        // 由于原坐标系是以图片左上角为原点,unity是以图片中心为原点,所以需要根据图片大小再做父节点偏移
        Vector2 parentPos = new Vector2(mEffectNode.getWindowSize().x / 2.0f, -mEffectNode.getWindowSize().y / 2.0f);

        LT.MOVE_WINDOW(mParentNode, parentPos);
    }
Exemple #2
0
 public override void init()
 {
     mAiming.setAutoHide(false);
     mAiming.setLoop(LOOP_MODE.LM_LOOP);
     mGreenAimingAnim.setLoop(LOOP_MODE.LM_LOOP);
     mOriginHeight = mAiming.getWindowSize().y;
 }