I need an if statment to Start Coroutine so I create one. And it doesn’t working. After I use print function to see the boolean variable really always false. I see it turns true normally. But still if statment doesn’t do stuff. This is code (in void Uptade):`
if (p1.calisti || p2.calisti2)
{
if (oynat) return;
else
{
StartCoroutine(OyunBitti());
oynat = true;
}
}`
Here is the output of print(p1.calisti) in void Uptade:
I am noob. Sorry, if I miss little thing. Thank you.
,
My Solution: I change “if(p1.calisti || p2.calisti2)” statement’s method Uptade to FixedUptade.Because in Uptade method statment called only once. But in FixedUptade (or LateUptade) it works very well.