コード例 #1
0
    // Update is called once per frame
    void Update()
    {
        if (Input.GetMouseButtonDown(0))
        {
            ExplosionController.CallExplosion(GameObject.Find("ggj odun").transform.position, Color.yellow);
            clickAmount--;
        }

        if (clickAmount <= 0)
        {
            op.allowSceneActivation = true;
        }
    }
コード例 #2
0
    IEnumerator MoveSacrifices()
    {
        while (Vector3.Distance(InputController.selectedFucker.transform.position, fire.transform.position) > 0.2f)
        {
            for (int i = 0; i < InputController.Fuckers.Count; i++)
            {
                InputController.Fuckers[i].transform.Translate((fire.transform.position - InputController.Fuckers[i].transform.position).normalized * Time.deltaTime * 5, Space.World);
            }
            yield return(null);
        }

        ExplosionController.CallExplosion(fire.transform.position, Color.black);
        yield return(new WaitForSeconds(0.2f));

        FollowerSpawner.instance.Refresh(FollowerSpawner.Amount);
        PlayCreator.instance.Refresh();
        InputController.instance.Refresh();
    }