// Use this for initialization void Start() { gc = GameController.FindObjectOfType<GameController>(); playerTag = GameObject.FindWithTag("Player"); gorillasSit = GameObject.FindGameObjectsWithTag("GorillaSit"); gorillasMoving = GameObject.FindGameObjectsWithTag("GorillaMove"); ssl = GameObject.FindObjectOfType<ScreenShakeLanding>(); cam = Camera.main; bf = cam.GetComponent<BloodFeeding>(); }
// Use this for initialization void Start() { //Debug.Log(gameObject.name); playerTag = GameObject.FindWithTag("Player"); gorillasSit = GameObject.FindGameObjectsWithTag("GorillaSit"); gorillasMoving = GameObject.FindGameObjectsWithTag("GorillaMove"); //Debug.Log( gorillasMoving.Length ); bf = GameObject.FindObjectOfType<BloodFeeding>(); shader1 = Shader.Find("Custom/ToonBasicAdjusted"); shader2 = Shader.Find("Toon/Basic"); colourVariations = new ArrayList(); colourVariations.Add(new Color(1, 0.5f, 0, 1)); colourVariations.Add(new Color(1, 0.598f, 0, 1)); colourVariations.Add(new Color(1, 0.635f, 0, 1)); colourVariations.Add(new Color(1, 0.706f, 0, 1)); colourVariations.Add(new Color(1, 0.764f, 0.188f, 1)); colourVariations.Add(new Color(1, 0.804f, 0.33f, 1)); colourVariations.Add(new Color(1, 0.902f, 0.671f, 1)); colourVariations.Add(Color.white); //rend.material.shader = shader2; }