예제 #1
0
    private void MakeOnTouch()
    {
        int numberOfBoxes = PersonInfo.post;

        GlobalOptions.GetGuiLayer().AddMoney(numberOfBoxes * Random.Range(100, 300));
        PersonInfo.AddPost(-PersonInfo.post);
        GlobalOptions.GetScreenLoader().LoadScreenByName("ScreenGameOver");
    }
예제 #2
0
파일: PostalEnemy.cs 프로젝트: Shahabz/crm
    // Use this for initialization

    public override void OnHit(Collider other)
    {
        base.OnHit(other);
        GlobalOptions.GetPlayerScript().boostFx.Play();
        PersonInfo.AddPost(1);
        GuiLayer.AddPostal();
        PlayClipSound();
        MakeInactive();
    }