Exemple #1
0
    }                                        //물병이 선택되었음을 알리는 변수


    private void Start()
    {
        membraneCreator      = GameObject.Find("Player").GetComponent <MembraneCreator>();
        freezer              = GameObject.Find("Player").GetComponent <Freezer>();
        psychokinesis        = GameObject.Find("Player").GetComponent <Psychokinesis>();
        bottle               = GameObject.FindWithTag("isActBottle");
        bottleController     = bottle.GetComponent <BottleController>();
        bottleSkillOperation = bottle.GetComponent <BottleSkillOperation>();
        bottleSelected       = true;
    }
Exemple #2
0
 public void ReselectBottle()
 {
     bottle                            = GameObject.FindWithTag("isActBottle");
     bottleController                  = bottle.GetComponent <BottleController>();//힘을 적용할 물병을 태그에 따라 재설정
     bottleSkillOperation              = bottle.GetComponent <BottleSkillOperation>();
     membraneCreator.membraneNum       = membraneCreator.getSuperPowerLV();
     psychokinesis.psychoAvailable     = true;
     membraneCreator.membraneAvailable = false;
     freezer.freezeAvailable           = true;
     bottleSelected                    = true;
 }