예제 #1
0
    // Use this for initialization
    void Start()
    {
        // Set the instance
        instance = this;

        lerpedColorBrain = Color.red;
        lerpedColorStomach = Color.red;
        lerpedColorLiver = Color.red;
        lerpedColorLeftKidney = Color.red;
        lerpedColorRightKidney = Color.red;
        lerpedColorIntestines = Color.red;
        lerpedColorCel = Color.blue;

        //cel = GameObject.FindGameObjectWithTag("Player");
        //brain = GameObject.FindGameObjectWithTag("BrainS");
        //stomach = GameObject.FindGameObjectWithTag("StomachS");
        //liver = GameObject.FindGameObjectWithTag("LiverS");
        //leftKidney = GameObject.FindGameObjectWithTag("LeftKidneyS");
        //rightKidney = GameObject.FindGameObjectWithTag("RightKidneyS");
        //intestines = GameObject.FindGameObjectWithTag("IntestinesS");
    }
예제 #2
0
 void OnParticleCollision()
 {
     //Debug.Log("I feel triggered");
     colorChanger cc = new colorChanger();
     cc.getOxigen();
 }