// Start is called before the first frame update void Start() { instance = GameObject.Find("slime").GetComponent <moveslime>(); }
void Start() { instance = GameObject.Find("slime").GetComponent <moveslime>(); spriteRenderer = GetComponent <SpriteRenderer>(); }