Beispiel #1
0
    void Start()
    {
        GameObject player = GameObject.FindWithTag("Player");

        rb              = GetComponent <Rigidbody2D>();
        playerStatus    = player.GetComponent <PlayerStatus>();
        targetCharacter = player.GetComponent <Rigidbody2D>();
        countdown       = 5;
        bC              = GetComponent <Animator>();
        blob            = new AbstractBlobFactory().GetBlob(blobColor.ToString());
    }
Beispiel #2
0
 public void SetAnimatorController(RuntimeAnimatorController _ctrl)
 {
     this.blobController = _ctrl;
     blob = new AbstractBlobFactory().GetBlob(blobController.ToString());
 }
Beispiel #3
0
 public void SetColor(Colors color)
 {
     this.blobColor = color;
     blob           = new AbstractBlobFactory().GetBlob(blobColor.ToString());
 }