コード例 #1
0
ファイル: CollisionDetector.cs プロジェクト: leon196/DingDong
    void Start()
    {
        frameBuffer = GetComponent<FrameBuffer>();
        renderTexture = frameBuffer.GetCurrentTexture();

        rect = new Rect(0f, 0f, Game.width, Game.height);
        texture2D = new Texture2D((int)Game.width, (int)Game.height);
        colorArray = new Color[(int)Game.width * (int)Game.height];

        if (collectibleList == null) {
            collectibleList = new List<Collectible>();
        }

        position = Vector2.zero;
    }
コード例 #2
0
    void Start()
    {
        frameBuffer   = GetComponent <FrameBuffer>();
        renderTexture = frameBuffer.GetCurrentTexture();

        rect       = new Rect(0f, 0f, Game.width, Game.height);
        texture2D  = new Texture2D((int)Game.width, (int)Game.height);
        colorArray = new Color[(int)Game.width * (int)Game.height];

        if (collectibleList == null)
        {
            collectibleList = new List <Collectible>();
        }

        position = Vector2.zero;
    }