Beispiel #1
0
    private void Awake()
    {
        spritesRenderer = new SpriteRenderer[sprites.Length];

        for (int i = 0; i < spritesRenderer.Length; i++)
        {
            spritesRenderer[i] = sprites[i].GetComponent <SpriteRenderer>();
            spritesRenderer[i].sortingOrder = 100;
        }
        bloodSplatterManager = GetComponent <BloodSpatterManager>();
    }
Beispiel #2
0
 //See PlayerController
 public override void DoStart()
 {
     bloodSpatterManager = GetComponent <BloodSpatterManager>();
 }