예제 #1
0
    void Awake()
    {
        // Camera view
        View = GameObject.Find("View").gameObject;

        // Load some sprites to show the liquid flow directions
        LiquidFlowSprites = Resources.LoadAll <Sprite>("LiquidFlowSprites");

        // Generate our viewable grid GameObjects
        CreateGrid();

        // Initialize the liquid simulator
        LiquidSimulator = new Liquid();
        LiquidSimulator.Initialize(Cells);
    }