Exemplo n.º 1
0
    public void CreateSlice(Vector3 rotation)
    {
        currentSlice = Instantiate(levelPrefab).GetComponent <SliceBoard>();
        currentSlice.transform.SetParent(slices.transform, false);
        currentSlice.NotifyObjectivesFilled += model.ObjectivesFilledNotification;

        model.SetSliceBoard(ref currentSlice, rotation);

        currentView.GetComponent <GetComponentsFadeAnimation>().StartReverseAnimating();
        currentSlice.GetComponent <GetComponentsFadeAnimation>().StartAnimating();
    }