Ejemplo n.º 1
0
    public void SetChallenge(GoalChallenge challenge)
    {
        GameObject gameObject = UnityEngine.Object.Instantiate <GameObject>(challenge.Icon.icon);

        gameObject.transform.parent        = base.transform;
        gameObject.transform.localPosition = challenge.Icon.position;
        gameObject.transform.localScale    = new Vector3(challenge.Icon.scale, challenge.Icon.scale, 1f);
        Material sharedMaterial = gameObject.GetComponent <Renderer>().sharedMaterial;

        gameObject.GetComponent <Renderer>().sharedMaterial = AtlasMaterials.Instance.GetCachedMaterialInstance(sharedMaterial, AtlasMaterials.MaterialType.PartZ);
    }
Ejemplo n.º 2
0
 public void SetGoal(GoalChallenge challenge)
 {
     this.m_goal = challenge;
 }