Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     obj = transform.parent.GetComponent<ObjectScript>();
     switch (type) {
     case BlockType.Steel:
         obj.toggleGravity(false);
         break;
     case BlockType.Wood:
         //Can be destroyed by hand
     case BlockType.Stone:
         //Can be destroyed by bomb
         //Applying gravity
         break;
     }
 }
Exemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        obj = transform.parent.GetComponent <ObjectScript>();
        switch (type)
        {
        case BlockType.Steel:
            obj.toggleGravity(false);
            break;

        case BlockType.Wood:
        //Can be destroyed by hand
        case BlockType.Stone:
            //Can be destroyed by bomb
            //Applying gravity
            break;
        }
    }