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()); }
public void SetAnimatorController(RuntimeAnimatorController _ctrl) { this.blobController = _ctrl; blob = new AbstractBlobFactory().GetBlob(blobController.ToString()); }
public void SetColor(Colors color) { this.blobColor = color; blob = new AbstractBlobFactory().GetBlob(blobColor.ToString()); }