Beispiel #1
0
    void Start()
    {
        playerRenderer = GetComponentsInChildren <Renderer>();

        hurtMaterial = Resources.Load("Materials/HurtMaterial", typeof(Material)) as Material;

        headDefault = playerRenderer[0].material;
        bodyDefault = playerRenderer[1].material;

        segmentBarmanager = transform.GetChild(2).GetChild(0).GetComponent <SegmentBarmanager>();

        maxHealth = health;
    }